{% comment %} ----------------------------------------------------------------*\
 |  navigation.html                                                           |
 |                                                                            |
 |  Copyright (c) 2009-2010, Code A La Mode, original authors.                |
 |                                                                            |
 |      This file is part of imi-imi.                                         |
 |                                                                            |
 |      imi-imi is free software; you can redistribute it and/or modify       |
 |      it under the terms of the GNU General Public License as published by  |
 |      the Free Software Foundation, either version 3 of the License, or     |
 |      (at your option) any later version.                                   |
 |                                                                            |
 |      imi-imi is distributed in the hope that it will be useful,            |
 |      but WITHOUT ANY WARRANTY; without even the implied warranty of        |
 |      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         |
 |      GNU General Public License for more details.                          |
 |                                                                            |
 |      You should have received a copy of the GNU General Public License     |
 |      along with imi-imi.  If not, see <http://www.gnu.org/licenses/>.      |
\*------------------------------------------------------------- {% endcomment %}


{% if not in_maintenance %}
    <div id="navigation" class="main lowercase">
        <ul>
            <li>
                <a href="/"
                    {% ifequal 'imi-imi' active_tab %}
                        class="active_tab"
                    {% endifequal %}
                >imi-imi</a>
            </li>

            <li class="sign_in">
                {% if not current_user %}
                    <a href="{{ login_url }}">Sign In</a>
                {% else %}
                    <a href="{{ logout_url }}">Sign Out</a>
                {% endif %}
            </li>

            <li class="search">
                <form id="search" action="/search" method="get" autocomplete="off">
                    <div class="form_element">
                        <input id="query" name="query" type="text"
                               value="{% if target_words_string %}{{ target_words_string }}{% else %}search bookmarks{% endif %}"
                        />
                        <div id="live_search"></div>
                    </div>
                </form>
            </li>
        </ul>
    </div>
{% endif %}
